import pyttsx3

def speak(text):
    engine = pyttsx3.init()
    engine.say(text)
    engine.runAndWait()
if __name__ == '__main__':
    speak("你好，世界！")